<template>
	<view style="padding-bottom: 140rpx;">
		<view class="header">
			<u-navbar :border-bottom='false' back-icon-size='50' title="订单详情" title-color="#FFFFFF"
				back-icon-color="#FFFFFF" :background="background"></u-navbar>
			<!-- 	<view class="status">
				<view class="status-tit">
					预订成功
				</view>
			</view> -->
			<!-- 	<view class="status">
				<view class="status-tit">
					待支付
				</view>
				<view class="tip">
					改订单需要在30分钟内完成支付，超时将取消
				</view>
			</view> -->
			<view class="status">
				<view class="status-tit">
					已取消
				</view>
				<view class="tip">
					您的订单已取消，平台审核通过后退款将于1-3个工作日到账
				</view>
			</view>
		</view>
		<view class="orderBox">
			<view class="hotelInfo">
				<view class="left">
					<view class="name">
						深圳福田希尔顿酒店
					</view>
					<view class="address">
						会展中心 彩田路2009号瀚森大厦
					</view>
				</view>
				<view class="right">
					<u-icon name="map-fill" color="#3587F7" size="44"></u-icon>
					<text>地图</text>
				</view>
			</view>
			<view class="bedInfo">
				<view class="type">
					大床房
				</view>
				<view class="tips">
					<text>大床</text>
					<text>无早</text>
					<text>有窗</text>
					<text>可住2人</text>
				</view>
				<view class="time">
					<view class="start-time">
						<text class="date">2月25日</text>
						<text class="day">今天</text>
					</view>
					<view class="night">
						1晚
					</view>
					<view class="start-time">
						<text class="date">2月26日</text>
						<text class="day">周三</text>
					</view>
				</view>
				<view class="level">
					入住时间：14:00以后 离店时间：12:00以前
				</view>
			</view>
			<view class="checkInfo">
				<view class="label">
					入住人
				</view>
				<view class="check-ul">
					<view class="check-li">
						<view class="left">
							<view class="name">
								小桌子
							</view>
							<view class="phone">
								手机号 13569895632
							</view>
						</view>
						<view class="right">
							<u-icon name="edit-pen" color="#3587F7" size="36"></u-icon>
						</view>
					</view>
					<view class="check-li">
						<view class="left">
							<view class="name">
								小桌子
							</view>
							<view class="phone">
								手机号 13569895632
							</view>
						</view>
						<view class="right">
							<u-icon name="edit-pen" color="#3587F7" size="36"></u-icon>
						</view>
					</view>
				</view>
			</view>
			<view class="billInfo">
				<view class="label">
					发票信息
				</view>
				<view class="text">
					<text style="color: #F16026;">（平台开票）</text>，离店后由爱世界开给用户。
				</view>
			</view>
		</view>
		<!-- 	<view class="cancel" @click="navTo('./cancelOrder')">
			取消订单
		</view> -->

		<view class="rebuy">
			再次预定
		</view>

		<view class="pay">
			<view class="left">
				<view class="text">
					订单总额
				</view>
				<view class="price">
					<text style="font-size: 28rpx;">¥</text>569
				</view>
				<view class="detail">
					<u-icon name="arrow-up" color="#999999" size="28"></u-icon>
				</view>
			</view>
			<view class="payBtn" @click="showPay=true">
				去支付
			</view>
		</view>

		<u-popup v-model="showPay" mode="bottom" :closeable='true' border-radius='16'>
			<view class="payPop">
				<view class="title">
					选择支付方式
				</view>
				<view class="pay-ul">
					<view class="pay-li">
						<view class="pay-li-left">
							<image src="../../../static/imgs/weixinzf.png" mode=""></image>
							<text>微信</text>
						</view>
						<u-checkbox v-model="checked" shape="circle" size="30"></u-checkbox>
					</view>
					<view class="pay-li">
						<view class="pay-li-left">
							<image src="../../../static/imgs/zhifubaozf.png" mode=""></image>
							<text>支付宝</text>
						</view>
						<u-checkbox v-model="checked" shape="circle" size="30"></u-checkbox>
					</view>
				</view>
				<view class="pay1">
					支付
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	import utils from '@/common/utils.js' // 时间格式化
	export default {
		data() {
			return {
				checked: false,
				showPay: false,
				background: {}
			}
		},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang='scss' scoped>
	.header {
		width: 100%;
		height: 332rpx;
		background: linear-gradient(107deg, #3FA3F9 0%, #2D7BF7 100%);

		.status {
			padding: 0 28rpx;
			margin-top: 20rpx;

			.status-tit {
				font-size: 44rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
			}

			.tip {
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #FFFFFF;
			}
		}
	}

	.orderBox {
		width: 100%;
		height: auto;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 0px 0px;
		padding: 0 28rpx;

		.hotelInfo {
			margin-top: -44rpx;
			padding: 36rpx 0;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 2rpx solid #F2F2F7;

			.left {
				.name {
					font-size: 32rpx;
					font-family: PingFang SC;
					font-weight: 600;
					color: #333333;
				}

				.address {
					margin-top: 16rpx;
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #666666;
				}
			}

			.right {
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;

				text {
					font-size: 28rpx;
					font-family: Segoe UI;
					font-weight: 400;
					color: #3587F7;
					margin-top: 8rpx;
				}
			}
		}

		.bedInfo {
			padding: 30rpx 0;
			border-bottom: 2rpx solid #F2F2F7;

			.type {
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 600;
				color: #333333;
			}

			.tips {
				margin-top: 8rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #666666;

				text {
					margin-right: 15rpx;
				}
			}

			.time {
				display: flex;
				align-items: center;
				margin-top: 12rpx;

				.night {
					width: fit-content;
					height: 40rpx;
					background: #FFFFFF;
					border: 2rpx solid #DFDEE2;
					border-radius: 40rpx;
					font-size: 24rpx;
					font-family: Segoe UI;
					font-weight: 400;
					color: #666666;
					text-align: center;
					padding: 0 20rpx;
					margin: 0 20rpx;
				}

				.start-time {
					.date {
						font-size: 32rpx;
						font-family: Segoe UI;
						font-weight: bold;
						color: #333333;
						margin-right: 10rpx;
					}

					.day {
						font-size: 28rpx;
						font-family: Segoe UI;
						font-weight: 400;
						color: #666666;
					}
				}
			}

			.level {
				margin-top: 12rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #333333;
			}
		}

		.checkInfo {
			padding: 20rpx 0;
			border-bottom: 2rpx solid #F2F2F7;

			.label {
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 600;
				color: #333333;
			}

			.check-ul {
				.check-li {
					height: 100rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;

					.left {
						.name {
							font-size: 32rpx;
							font-family: Segoe UI;
							font-weight: 400;
							color: #333333;
						}

						.phone {
							margin-top: 6rpx;
							font-size: 28rpx;
							font-family: Segoe UI;
							font-weight: 400;
							color: #999999;
						}
					}
				}
			}
		}

		.billInfo {
			padding: 20rpx 0 30rpx;

			.label {
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 600;
				color: #333333;
			}

			.text {
				margin-top: 20rpx;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #666666;
			}
		}

	}

	.cancel {
		width: 694rpx;
		height: 88rpx;
		background: #FFFFFF;
		border-radius: 8rpx;
		margin: 60rpx auto 0;
		text-align: center;
		line-height: 88rpx;
		font-size: 28rpx;
		font-family: Segoe UI;
		font-weight: 400;
		color: #666666;
	}

	.rebuy {
		width: 688rpx;
		height: 88rpx;
		background: linear-gradient(180deg, #3FA3F9 0%, #2D7BF7 100%);
		margin: 60rpx auto 0;
		border-radius: 8rpx;
		font-size: 34rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		text-align: center;
		line-height: 88rpx;
	}

	.pay {
		width: 100%;
		height: 112rpx;
		background: #FFFFFF;
		position: fixed;
		bottom: 0;
		display: flex;
		align-items: center;
		padding: 0 28rpx;
		justify-content: space-between;

		.left {
			display: flex;
			align-items: center;

			.text {
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #333333;
			}

			.price {
				font-size: 44rpx;
				font-family: Segoe UI;
				font-weight: bold;
				color: #3587F7;
				margin-left: 10rpx;
			}

			.detail {
				margin-left: 6rpx;
			}
		}

		.payBtn {
			width: 360rpx;
			height: 80rpx;
			background: linear-gradient(180deg, #FEA837 0%, #FF7700 100%);
			border-radius: 8rpx;
			text-align: center;
			line-height: 80rpx;
			font-size: 32rpx;
			font-family: Segoe UI;
			font-weight: 400;
			color: #FFFFFF;
		}
	}

	.payPop {
		padding-bottom: 20rpx;

		.title {
			width: 375px;
			height: 100rpx;
			line-height: 100rpx;
			text-align: center;
		}

		.pay-ul {

			.pay-li {
				width: 694rpx;
				height: 100rpx;
				background: #FFFFFF;
				margin: 0 auto;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.pay-li-left {
					display: flex;
					align-items: center;

					image {
						width: 44rpx;
						height: 44rpx;
					}

					text {
						font-size: 32rpx;
						font-family: Alibaba Sans;
						font-weight: 400;
						color: #333333;
						margin-left: 20rpx;
					}
				}

			}
		}

		.pay1 {
			width: 694rpx;
			height: 88rpx;
			background: linear-gradient(56deg, #FEA837 0%, #FF7700 100%);
			margin: 0 auto;
			border-radius: 8rpx;
			font-size: 40rpx;
			font-family: Arial;
			font-weight: 400;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
			margin-top: 40rpx;
		}
	}


	/deep/ .u-checkbox__label {
		margin-right: 12rpx !important;
	}
</style>
